package com.dykj.fireFighting.server.socialUnit.buildmanger.service.impl;

import com.dykj.fireFighting.api.socialUnit.buildmanger.entity.Partitions;
import com.dykj.fireFighting.api.socialUnit.buildmanger.service.IPartitionsService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.buildmanger.mapper.PartitionsMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;



import java.util.List;
import java.util.Map;

/**
 * 建筑管理-分区
 *
 * @Author aixiaolan
 * @Date  2021-06-23 14:59:35
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class PartitionsServiceImpl extends BaseServiceImpl<PartitionsMapper, Partitions> implements IPartitionsService {

    @Override
    public List<Partitions> getPartitionsList(String unitId){
        return baseMapper.getPartitionsList(unitId);
    }

    @Override
    public List<Partitions> getPartitionsListByFloorId(String floorId) {
        return baseMapper.getPartitionsListByFloorId(floorId);
    }

}
